package com.zl.gmadmin.payload.auth;

/**
 * @author zhangliang
 * @version 1.0
 * @date 2021/2/2 14:13
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * @author zhangliang
 * @version 1.0
 * @date 2021/1/26 16:33
 * 登录请求参数
 */
@ApiModel(value = "登录请求参数")
public class LoginRequest {

    @NotBlank(message = "登录名不能为空")
    @ApiModelProperty(value = "登录名或者邮箱或者电话号码")
    private String usernameOrEmailOrPhone;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "登录密码")
    private String password;

    /**
     * 记住我
     */
    @ApiModelProperty(value = "记住我")
    private Boolean rememberMe = false;

    /**
     *  验证码
     */
    @ApiModelProperty(value = "验证码")
    private String code;
    /**
     * 标识id
     */
    @ApiModelProperty(value = "验证码唯一id")
    private String uuid;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getUsernameOrEmailOrPhone() {
        return usernameOrEmailOrPhone;
    }

    public void setUsernameOrEmailOrPhone(String usernameOrEmailOrPhone) {
        this.usernameOrEmailOrPhone = usernameOrEmailOrPhone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(Boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

}
